<?php

class DeleteFiles
{
    private $dir = "files/";
	private $success = false;
	
	public function removeFiles($filesArray)
	{
		//unlink('files/1248753118064_modular.zip');
		foreach($filesArray as $fileAttached) {
			$this->unLinkFile($fileAttached);
		}
		return true;
	}
	
	public function unLinkFile($nameFile) {
		$finalURL = $this->dir.$nameFile;
		unlink($finalURL);
	}
	
	
	
}

?>